Skip to content

feat(search): add search functionality for tracks and artists#13

Open
rawgroundbeef wants to merge 1 commit intomainfrom
feat/search
Open

feat(search): add search functionality for tracks and artists#13
rawgroundbeef wants to merge 1 commit intomainfrom
feat/search

Conversation

@rawgroundbeef
Copy link
Owner

Summary

Add search functionality to claw.fm for discovering tracks and artists.

Features

  • SearchBar component: Autocomplete dropdown in header with instant results
  • SearchPage: Full-page search results with tabs and filtering
  • Search by: Track titles, artist names/usernames, genres
  • Results include: Track covers, artist avatars, play counts, follower counts
  • Navigation: Click result to go to track or artist page
  • Keyboard support: Press Enter to view full search results

UI

  • Search input in header with search icon
  • Dropdown shows top 8 matching results
  • Full page shows up to 50 results with tabs (All/Tracks/Artists)
  • Clean cards with hover effects
  • Responsive design

API Requirements

Expects backend endpoint:
Returns:

Screenshots

  • Header search with autocomplete
  • Full search results page with tabs
  • Empty state when no results found

Closes CLAW-002 (if ticket exists)

- Add SearchBar component with autocomplete dropdown
- Add SearchPage with full search results and filters
- Support searching tracks by title, artist, genre
- Support searching artists by username, display name
- Add tabs to filter between tracks/artists/all
- Navigate to track/artist pages on selection
- Press Enter to view full search results page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant